package com.nuonuo.config;

import org.redisson.Redisson;
import org.redisson.api.RMapCache;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

/**
 * @author duan
 * @version 1.0
 * @date 2024/1/25 16:17
 */
public class RedissonUtils {

    private final RedissonClient redisson;

    private RMapCache<String, Boolean> mailTestParamMap;

    public static RedissonUtils getInstance(Config config)
    {
        return new RedissonUtils(Redisson.create(config));
    }

    private RedissonUtils(RedissonClient redisson)
    {
        this.redisson = redisson;
    }


    public RedissonClient getRedissonClient()
    {
        return redisson;
    }
}
